package com.yunjijia.pojo;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    private String userid;

    private String username;

    private String idcart;

    private String company;

    private String email;

    private String phone;

    private String telphone;

    private String picture;

    private Double cost;

    private Date createtime;

    private Date updatetime;

    private String password;


    public User() {
        super();
    }

    public User(String userid, String username, String idcart, String company, String email, String phone,
                String telphone, String picture, Double cost, Date createtime, Date updatetime, String password) {
        super();
        this.userid = userid;
        this.username = username;
        this.idcart = idcart;
        this.company = company;
        this.email = email;
        this.phone = phone;
        this.telphone = telphone;
        this.picture = picture;
        this.cost = cost;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.password = password;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getIdcart() {
        return idcart;
    }

    public void setIdcart(String idcart) {
        this.idcart = idcart == null ? null : idcart.trim();
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company == null ? null : company.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone == null ? null : telphone.trim();
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture == null ? null : picture.trim();
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    @Override
    public String toString() {
        return "User [userid=" + userid + ", username=" + username + ", idcart=" + idcart + ", company=" + company
                + ", email=" + email + ", phone=" + phone + ", telphone=" + telphone + ", picture=" + picture
                + ", cost=" + cost + ", createtime=" + createtime + ", updatetime=" + updatetime + ", password="
                + password + "]";
    }

}